package com.itheima.student;

import com.itheima.superclass.Person;

//继承Person
public class Student extends Person {
    //重写方法
    @Override
    public String getType() {
        return "学生";
    }

    @Override
    public String getWork() {
        return "学习Java";
    }
   //定义与父类相应形式的构造方法
    public Student() {
    }

    public Student(int id, String name, String sex, String birthday) {
        super(id, name, sex, birthday);
    }
}
